<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <script>

        var str='我是'
        var num=1122
        var result=str+num
        console.log(result);
        //一个数字加上字符串默认为字符串
         
        var str2=true
        var result2=str2+num
        console.log(result2);
        //数字加上布尔型 false为0  true为1

        var result3=str+str2
        console.log(result3);
        //字符串加上布尔型默认字符串


        var a=6000
        var b=6000*0.05+6000
        console.log(b);
        var c=6300*0.05+6300
        console.log(c);
        //练习一


        var d=65425
        var e=parseInt(d/10000);
        var f=(parseInt(d/1000)%10)
        console.log(e,f);
        //练习二
        
    </script>
</head>
<body>
    
</body>
</html>